﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Qua_trinh_danh_sach_dot_bao_tri_thiet_bi.aspx.cs" Inherits="ChucNang_Qua_trinh_bao_tri_thiet_bi" %>

<%@ Register assembly="eWorld.UI" namespace="eWorld.UI" tagprefix="ew" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
<style type="text/css">
        .style2
        {
            width: 262px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">
    <tr>
		 <td class="cssPageTitleBG" colspan="4">
		        <asp:label id="lbl_thong_tin_chi_tiet_tv" runat="server" CssClass="cssPageTitle" Text="Quản lý quá trình bảo trì Thiết bị"/>
		 </td>
	</tr>
    <tr>
         <td align="right" class="style2">
             <asp:label id="Label9" CssClass="cssManField" runat="server" Text="Tỉnh (Thành phố)"/>
        </td>
        <td>
			   <asp:DropDownList id="m_cbo_tinh" runat="server" Width="80%" 
                CssClass="cssDorpdownlist" AutoPostBack="true"
                   onselectedindexchanged="m_cbo_tinh_SelectedIndexChanged"  >
                </asp:DropDownList>
		</td>
         <td align="right" class="style2">
             <asp:label id="Label10" CssClass="cssManField" runat="server" Text="Quận (Huyện)"/>
        </td>
        <td>
			    <asp:DropDownList id="m_cbo_huyen" runat="server" Width="96%" 
                CssClass="cssDorpdownlist" AutoPostBack="true"
                    onselectedindexchanged="m_cbo_huyen_SelectedIndexChanged"  >
                </asp:DropDownList>
		</td>
    </tr>
    <tr>
         <td align="right" class="style2">
             <asp:label id="Label18" CssClass="cssManField" runat="server" Text="Bệnh viện (Cơ quan)"/>
        </td>
        <td>
			    <asp:DropDownList id="m_cbo_benh_vien" runat="server" Width="90%" 
                CssClass="cssDorpdownlist" AutoPostBack="true"
                    onselectedindexchanged="m_cbo_benh_vien_SelectedIndexChanged"  >
                </asp:DropDownList> 
		</td>
         <td align="right" class="style2">
             &nbsp;</td>
        <td>
			    &nbsp;</td>
    </tr>
     <tr>
            <td align="right" class="style2">
                <asp:Label ID="m_lbl_ghi_chu2" runat="server" CssClass="cssManField" 
                    Text="Số Seri: " />
            </td>
            <td align="left">
			    <asp:textbox id="m_txt_so_seri_number" CssClass="cssTextBox"  runat="server"  Width="60%" />
		    </td>
            <td>
                    
                &nbsp;</td>
        </tr>
     <tr>
            <td align="right" class="style2">
                <asp:Label ID="m_lbl_ghi_chu" runat="server" CssClass="cssManField" Text="Thời gian bảo trì: " />
            </td>
            <td align="left">&nbsp;</td>
            <td>
                    
            </td>
        </tr>
    <tr>
         <td align="right" class="style2">
             &nbsp;</td>
        <td>
                <asp:Label ID="m_lbl_ghi_chu0" runat="server" CssClass="cssManField" 
                    Text="Từ ngày: " />
			    <ew:CalendarPopup ID="m_dat_tu_ngay" runat="server" 
                        ControlDisplay="TextBoxImage" GoToTodayText="Hôm nay:" ImageUrl="~/Images/cal.gif"
                        Nullable="True" NullableLabelText="" 
                        ShowGoToToday="True" Width="35%" SelectedDate="" Text="" Culture="vi-VN" 
                        DisableTextboxEntry="False">
                        <weekdaystyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <weekendstyle backcolor="LightGray" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <offmonthstyle backcolor="AntiqueWhite" 
                            font-names="Verdana,Helvetica,Tahoma,Arial" font-size="XX-Small" 
                            forecolor="Gray" />
                        <selecteddatestyle backcolor="Yellow" 
                            font-names="Verdana,Helvetica,Tahoma,Arial" font-size="XX-Small" 
                            forecolor="Black" />
                        <monthheaderstyle backcolor="Yellow" 
                            font-names="Verdana,Helvetica,Tahoma,Arial" font-size="XX-Small" 
                            forecolor="Black" />
                        <DayHeaderStyle BackColor="Orange" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="Black" />
                        <cleardatestyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <gototodaystyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <TodayDayStyle BackColor="LightGoldenrodYellow" 
                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                            ForeColor="Black" />
                        <holidaystyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                    </ew:CalendarPopup>
			    </td>
         <td align="left" class="style2">
                <asp:Label ID="m_lbl_ghi_chu1" runat="server" CssClass="cssManField" 
                 Text="Đến ngày: " />
			    <ew:CalendarPopup ID="m_dat_den_ngay" runat="server" 
                        ControlDisplay="TextBoxImage" GoToTodayText="Hôm nay:" ImageUrl="~/Images/cal.gif"
                        Nullable="True" NullableLabelText="" 
                        ShowGoToToday="True" Width="40%" SelectedDate="" Text="" Culture="vi-VN" 
                        DisableTextboxEntry="False">
                        <weekdaystyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <weekendstyle backcolor="LightGray" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <offmonthstyle backcolor="AntiqueWhite" 
                            font-names="Verdana,Helvetica,Tahoma,Arial" font-size="XX-Small" 
                            forecolor="Gray" />
                        <selecteddatestyle backcolor="Yellow" 
                            font-names="Verdana,Helvetica,Tahoma,Arial" font-size="XX-Small" 
                            forecolor="Black" />
                        <monthheaderstyle backcolor="Yellow" 
                            font-names="Verdana,Helvetica,Tahoma,Arial" font-size="XX-Small" 
                            forecolor="Black" />
                        <DayHeaderStyle BackColor="Orange" Font-Names="Verdana,Helvetica,Tahoma,Arial" 
                            Font-Size="XX-Small" ForeColor="Black" />
                        <cleardatestyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <gototodaystyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                        <TodayDayStyle BackColor="LightGoldenrodYellow" 
                            Font-Names="Verdana,Helvetica,Tahoma,Arial" Font-Size="XX-Small" 
                            ForeColor="Black" />
                        <holidaystyle backcolor="White" font-names="Verdana,Helvetica,Tahoma,Arial" 
                            font-size="XX-Small" forecolor="Black" />
                    </ew:CalendarPopup>
            </td>
        <td>
			    &nbsp;</td>
    </tr>
    <tr>
            <td align="right">
			   <asp:button id="m_cmd_loc" accessKey="x" CssClass="cssButton" 
                            runat="server" Width="95px" Text="Lọc"
                    Height="22px" onclick="m_cmd_loc_Click"/>
                        
            </td>
            <td align="left">
			   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			   <asp:button id="m_cmd_them_moi" accessKey="x" CssClass="cssButton" 
                            runat="server" Width="105px" Text="Thêm đợt bảo trì"
                    Height="22px" onclick="m_cmd_them_moi_Click"/>
               
               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
               
               <asp:button id="m_cmd_xuat_excel" accessKey="x" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Xuất Excel"
                    Height="22px"/>
            </td>
            <td></td>
        </tr>
        <tr>
            <td class="cssPageTitleBG" colspan="4">
                <asp:label id="v_lbl_nhan_loc_doi_tac" runat="server" Text="Quá trình bảo trì thiết bị" CssClass="cssPageTitle"/>
            </td>
	    </tr>
        <tr>
             <td align="left" class="style2" colspan="4">
                 <asp:label id="Label1" CssClass="cssManField" runat="server" Text="- Tổng số lần đã bảo trì: "/>
                 <asp:label id="m_lbl_so_lan_bao_hanh" CssClass="cssManField_red" runat="server"/>
                 <asp:label id="Label5" CssClass="cssManField" runat="server" Text=" (lần)"/>
            </td>
        </tr>
        <tr>
             <td align="left" class="style2" colspan="4">
                 <asp:label id="Label2" CssClass="cssManField" runat="server" Text="- Số ngày tính từ lần bảo trì gần nhất đến thời điểm hiện tại là: "/>
                 <asp:label id="m_lbl_khoang_cach_ngay" CssClass="cssManField_red" runat="server"/>
                  <asp:label id="Label6" CssClass="cssManField" runat="server" Text=" (ngày)"/>
            </td>
        </tr>
    <!-- Lưới dữ liệu -->	
	<tr>
		<td align="center" colspan="4" valign="top">
		    <asp:GridView ID="m_grv_dm_doi_tac" runat="server" CellPadding="4" 
                AutoGenerateColumns="False" Width="98%" BackColor="White" BorderColor="#3366CC" 
                BorderStyle="None" BorderWidth="1px">
                <Columns>
                  <asp:TemplateField HeaderText="Xem chi tiết">
                        <ItemTemplate>
                            <asp:LinkButton runat="server" ID="m_lbt_chi_tiet" CommandName="Update" ToolTip="Sửa" 
                            CausesValidation="false"><center>
                            <img src="../Images/Button/Views.gif" width="20px" height="20px" alt="Sửa" /></center>
                            </asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle  Width="5%"/>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa">
                         <ItemTemplate>
                            <asp:LinkButton runat="server" ID="m_lbt_xoa" CommandName="Delete" 
                            OnClientClick="return confirm ('Các dữ liệu liên quan cũng sẽ bị xóa. Bạn có thực sự muốn xóa ?')" 
                            ToolTip="Xóa dự án này" CausesValidation="false">
                            <center><img src="../Images/Button/deletered.png" width="20px" height="20px" alt="Xóa" /></center></asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle  Width="5%"/>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="STT">
                    <ItemStyle  Width="5%"/>
                        <ItemTemplate><%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="NGAY_BAO_TRI" HeaderText="Ngày bảo trì" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-Width="35%" />
                    <asp:TemplateField HeaderText="Bệnh viện">
                    <ItemTemplate><%# mapping_ten_ben_a(Eval("ID_BEN_A")) %></ItemTemplate>
                    </asp:TemplateField>                    
                </Columns>
            <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#810c15" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle CssClass="cssSelectedRow" BackColor="#C5BBAF" Font-Bold="True"
                        ForeColor="#333333"></SelectedRowStyle>

            </asp:GridView> 
        </td>
	</tr>	
</table>
</asp:Content>

